package com.dqp.cslggroup.UI;

import android.content.Context;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.youth.banner.loader.ImageLoader;

import static com.dqp.cslggroup.UI.RoundImageView.TYPE_ROUND;


public class MyImageLoader extends ImageLoader {
    @Override
    public void displayImage(Context context, Object path, ImageView imageView) {
        Glide.with(context).load(path).into(imageView);
    }


    @Override
    public ImageView createImageView(Context context) {
        RoundImageView img = new RoundImageView(context);
        img.setBorderRadius(10);
        img.setType(TYPE_ROUND);
        return img;

    }
}

